package cn.zhf.shop.service;

import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.Shopping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingService {


    Message<?> deleteByPrimaryKey(Integer shoppingId);

    Message<?> insert(Shopping record);

    Message<?> insertSelective(Shopping record);

    Message<Shopping> selectByPrimaryKey(Integer shoppingId);

    Message<?> updateByPrimaryKeySelective(Shopping record);

    Message<?> updateByPrimaryKey(Shopping record);

    Integer countByUserId(String userId);

    Message<List<Shopping>> selectAllByUserId(String userId);

    Message<?> updateLessonNumByShoppingId(Integer shoppingId, Integer num);

    Shopping selectByUserIdAndLessonId(String userId,Integer lessonId);

    Shopping selectByPrimaryKey2(Integer shoppingId);
}

